package com.bw.zg2.db

import androidx.room.Database
import androidx.room.RoomDatabase
import com.bw.zg2.bean.BannerBean
import com.bw.zg2.bean.CartBean
import com.bw.zg2.bean.LoginBean
import com.bw.zg2.bean.SearchHistory

/**
 *
 * @ClassName: ShoppingDb
 * @Description: java类作用描述
 * @Author: zhangyanchao
 * @CreateDate: 2024/9/18 12:13 PM
 * @Version: 1.0
 */
@Database(
    entities = [BannerBean::class, LoginBean::class, SearchHistory::class, CartBean::class],
    version = 2,
    exportSchema = false
)
abstract class ShoppingDb : RoomDatabase() {
    abstract fun getBannerDao(): BannerDao
    abstract fun getLoginBeanDao(): LoginDao
    abstract fun getSearchHistoryDao(): SearchHistoryDao
    abstract fun getCartDao(): CartDao
}